package control.action;

import java.util.List;

import model.VStuinfo;
import model.VWanted;
import model.Varticle;
import business.factory.daos;


public class SeachtoAction extends BaseAction {
	
	
	private String seachstring;
	private String poststr;

	public String execute() {
		response.setCharacterEncoding("utf-8");
		response.setContentType("application/json");
		List<Varticle> artlist  = daos.articledao.getarticles();
		request.setAttribute("artlist", artlist);
		
		System.out.print(poststr);
		/*List<VWanted> liststu = daos.wanteddao.getV_Wantedsbypost(seachstring, postlist, majorlist, schoollist, 0, 0);
		int thenum = liststu.size();
		request.setAttribute("thenum", thenum);
		request.setAttribute("liststu", liststu);*/
		
		return SUCCESS;
	}

	public String getSeachstring() {
		return seachstring;
	}

	public void setSeachstring(String seachstring) {
		this.seachstring = seachstring;
	}

	public String getPoststr() {
		return poststr;
	}

	public void setPoststr(String poststr) {
		this.poststr = poststr;
	}
	
}